package com.tsmti.lab.controller.preprocessing;

import com.tsmti.core.common.controller.BaseCrudController;
import com.tsmti.lab.dto.SampleView;
import com.tsmti.lab.entity.PathologySample;
import com.tsmti.shiro.annotation.RequiresPathPermission;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Package：com.tsmti.lab.controller.preprocessing
 * @Class：DeliveryController
 * @Description： TODO
 * @Author：dcd
 * @Date：Created in 2018/11/14 4:12 PM
 * @Company:
 * @Version：
 * @Modified By:
 */
@RequestMapping("/preProcessing/delivery")
@Controller
@RequiresPathPermission("preProcessing:delivery")
public class DeliveryController extends BaseCrudController<PathologySample, Long> {
    @Override
    public void preList(Model model, HttpServletRequest request, HttpServletResponse response) {
        SampleView sample = new SampleView();
        model.addAttribute("data", sample);
    }

}
